package org.droidcon.apps.template.provider;

import android.net.Uri;


/**
 * Contract class to define behaviour and constants to interact with 
 * the Profile database and (when ready) the provider. 
 * 
 * @author henning
 * 
 */
public class ProfileContract {

	// FIXME: is it right to expose a table name here?
	public static final String TABLE = "profiles";
	public static final String KEY_ID = "_id";
	
    public static final String DATABASE_NAME="profiles.db";
    public static final int DATABASE_VERSION=1;
    
	public static final String COLUMN_NAME_FIRST = "name_first";
	public static final String COLUMN_NAME_LAST = "name_last";
	public static final String COLUMN_COMPANY_NAME = "company_name";
	public static final String COLUMN_DROIDCON_TICKET_NUMBER = "tickt_nr";
	public static final String COLUMN_MARKET_DEVELOPER_ACCOUNT = "developer_account";
    
	public static final String AUTHORITY = ProfileProvider.class.getCanonicalName().toLowerCase();
		
	public static final Uri AUTHORITY_URI =  Uri.parse("content://" + AUTHORITY );
	
    public static final String CONTENT_PATH = TABLE;

    public static final Uri CONTENT_URI =
        Uri.withAppendedPath(
            AUTHORITY_URI, CONTENT_PATH);
    
	// enable when provider comes!
//    public static final String CONTENT_TYPE =
//        "vnd.android.cursor.dir/vnd." + AUTHORITY + ".profile";
//    
//    public static final String CONTENT_ITEM_TYPE =
//        "vnd.android.cursor.item/vnd." + AUTHORITY + ".profile";
//	
}
